package com.amsp.oa.oademo.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.util.Date;
import java.util.List;
import java.time.LocalDate;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModelProperty;

@Data
@TableName("t_xdfeizhi")
public class Xdfeizhi {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String companyName;
    private String applicationDepartment;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date applicationDate;
    private String fileName;
    private String fileNumber;
    private String version;
    private String applicationReason;
    private String approver;
    private String departmentOpinion;
    private String reviewer;
    private String applicant;

    //@ApiModelProperty("废止日期")
    //@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    //private LocalDate abolishDate;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    @TableLogic
    private Boolean isDeleted;

    @TableField(exist = false)
    private List<XdfeizhiRevision> revisions;
}